import random

count = 7 #7机会
answer = random.randint(1,10) #0-100

print(answer)

#数值检查,如果超出范围,应当提示并不应计入回合
while count<5:
    guess = int(input("猜测的数字是: "))

#还有告诉当前前回合次数,和剩余次数
    if guess==answer:
        print("猜中了,游戏结束")
        break
    #告诉是猜测大了还是小了

    count+=1
else:
    print("次数耗尽,游戏结束")

for i in '111':
    print(i)